package com.ruoyi.web.controller.societies;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.Clubs;
import com.ruoyi.system.service.IClubsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/visitor")
public class VisitorController extends BaseController {

    @Autowired
    private IClubsService clubsService;

    /**
     * 查询【请填写功能名称】列表
     */
    @GetMapping("/list")
    public TableDataInfo list(Clubs clubs)
    {
        startPage();
        List<Clubs> list = clubsService.selectClubsListByVisitor(clubs);
        return getDataTable(list);
    }


}
